package org.nf.trading.entity;

import lombok.ToString;
import org.nf.trading.dto.CommentReplySecondaryDTO;

import java.util.Date;
import java.util.List;

@ToString
public class Comment {
    private Integer commentId;

    private Integer productId;

    private Integer postId;

    private Integer uId;

    private Date commentDatatime;

    private String commentContent;

    private User user;

    private Product product;

    private List<CommentReply> commentReplies;

    private Post post;

    private List<CommentReplySecondaryDTO> secondaryDTO;

    public Post getPost() {
        return post;
    }

    public void setPost(Post post) {
        this.post = post;
    }

    public List<CommentReply> getCommentReplies() {
        return commentReplies;
    }

    public void setCommentReplies(List<CommentReply> commentReplies) {
        this.commentReplies = commentReplies;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Date getCommentDatatime() {
        return commentDatatime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_comment.comment_datatime
     *
     * @param commentDatatime the value for t_comment.comment_datatime
     *
     * @mbg.generated Mon Nov 13 17:26:19 CST 2023
     */
    public void setCommentDatatime(Date commentDatatime) {
        this.commentDatatime = commentDatatime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_comment.comment_content
     *
     * @return the value of t_comment.comment_content
     *
     * @mbg.generated Mon Nov 13 17:26:19 CST 2023
     */
    public String getCommentContent() {
        return commentContent;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_comment.comment_content
     *
     * @param commentContent the value for t_comment.comment_content
     *
     * @mbg.generated Mon Nov 13 17:26:19 CST 2023
     */
    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent == null ? null : commentContent.trim();
    }

    public List<CommentReplySecondaryDTO> getSecondaryDTO() {
        return secondaryDTO;
    }

    public void setSecondaryDTO(List<CommentReplySecondaryDTO> secondaryDTO) {
        this.secondaryDTO = secondaryDTO;
    }
}